<extend name="Public/common"/>
<block name="othercss">

</block>
<block name="header">
<div class="header">
    <div class="clearfix box">
        <!--<a class="save">保存</a>-->
        <a class="return" href="javascript:history.go(-1)"><i class="return-icon"></i></a>
        <h2>{$top_cat_name}</h2>
    </div>
</div>
</block>
<block name="body">
<!--end header-->
<div class="container pt50">
    <div class="help_nav">
    <volist name="left_menu" id="item">
        <a href="{:U('Help/lists',array('id'=>$item['help_id']))}"  <eq name="item['help_id']" value="$model['help_id']">class="on"</eq>>{$item.help_name}</a>
    </volist>
    </div>
     <if condition="$model['type'] eq '单页'">
    <div class="editor">
       {$model.detail|htmldecode}

    </div>
     <elseif condition="$model['type'] eq '资讯'" />
     <ul class="help_list1">
      <volist name="list" id="list_item">
        <li>
            <div class="top">
                <div class="ones">{$list_item.title}</div>
            </div>
            <div class="bottom"> {$list_item.detail|htmlspecialchars_decode}
            </div>
        </li>
       </volist>
    </ul>
    <div class="pagetion">
       {$page}
        </div>  
    </if>
</div>




</block>
<block name="otherjs">
<script>
    $(function () {
        $('.help_list1 li .top').click(function () {
            $(this).parents('li').toggleClass('on').siblings().removeClass('on');
            $(this).siblings('.bottom').stop(true, true).slideToggle(300);
            $(this).parents('li').siblings().find('.bottom').stop(true, true).slideUp(300);
        })
    })
</script>
</block>
